package com.fjnldx.mes.domain.pojo.alarm.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 触发状态
 */
public enum TriggerStatusEnum {
    NORMAL("正常", 0),
    ABNORMAL("异常", 1);

    private final String status;

    @JsonValue
    @EnumValue
    private final Integer value;

    TriggerStatusEnum(String status, Integer value) {
        this.status = status;
        this.value = value;
    }

    public String getStatus() {
        return status;
    }

    public Integer getValue() {
        return value;
    }
}
